import Vue from "vue";
import App from "./App.vue";
import VueLazyload from 'vue-lazyload'
import router from "./router";
import store from "./store";

import "./mock"

import TypeNav from "./components/TypeNav";

// 全局的内容都在main.js引入
import "./styles/reset.css";
import "./styles/iconfont.css"

// 全局注册组件
Vue.component("TypeNav", TypeNav);

Vue.config.productionTip = false;

Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '/images/error.jpeg',
  loading: '/images/loading.gif',
  attempt: 1
})

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
